package com.maserb.monitor.service.jwEducation;

import com.maserb.monitor.entity.JwEducationClobEntity;
import com.maserb.monitor.entity.JwOpenPolicyEntity;
import com.maserb.monitor.repository.JwOpenPolicyRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


public interface JwOpenPolicyService extends JpaSpecificationService<JwOpenPolicyRepository, JwOpenPolicyRepository, JwOpenPolicyEntity, String> {
    Page<JwOpenPolicyEntity> findAll(Pageable pageable, String type ,String isRelease,String stauts,String orgId);

    Page<JwOpenPolicyEntity> findAllByOrgId(Pageable pageable, String orgId);

    List<JwOpenPolicyEntity> findByTitle(String title);

    void save(JwOpenPolicyEntity entity, JwEducationClobEntity clobEntity);

    void doRelease(String id);

    void doDisabled(String id);

    void doTop(String id);

    void cancelTop(String id);

    Integer find();
}